import request from '@/utils/request'

//根据用户id获取关注列表
export const getFollowListService=(userId)=>{
    return request.get('/user/select/like',{
        params:{
            userId
        }
    })
}
//根据用户id获取粉丝列表
export const getFansListService=(userId)=>{
    return request.get('/user/select/fans',{
        params:{
            userId
        }
    })
}

//是否关注
export const getIsFollowService=(likeUserId)=>{
    return request.get('/user/select/like/status',{
        params:{
            likeUserId
        }
    })
}

//关注
export const followService=(likeUserId)=>{
    return request.post('/user/update/attention',{},{
        params:{
            likeUserId
        }
    })
}

//取消关注
export const unfollowService=(likeUserId)=>{
    return request.post('/user/update/unfollow',{},{
        params:{
            likeUserId
        }
    })
}